import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
// 导入重置样式
import "./assets/css/reset.css"
// 导入全局样式
import "./assets/css/global.css";

// createApp(App).use(router).mount('#app')
const app = createApp(App)
app.use(router)
app.mount("#app")

// 导入所用组件
import ElementPlus from "element-plus";
// element-plus样式引入
import "element-plus/dist/index.css";
app.use(ElementPlus)

// 导入所有的el-icon图标
import * as ElIconModules from '@element-plus/icons-vue/dist'
//  统一注册el-icon图标
for(let iconName in ElIconModules){
    app.component(iconName,ElIconModules[iconName])
}

// 引入字体图标
import "./assets/fonts/iconfont.js"
import "./assets/fonts/iconfont.css"